package com.fundodoo.sfe.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fundodoo.sfe.common.annotation.ExportConfig;

import lombok.Data;

@Entity
@Table(name = "t_mail_settings")
@Data
public class MailSettings implements Serializable {

	private static final long serialVersionUID = -4852732617765810959L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "setting_id")
	private Long settingId;

	@Column(name = "setting_name")
	@ExportConfig(value = "设置名")
	private String name;
	
	@Column(name = "setting_value")
	@ExportConfig(value = "设置值")
	private String value;

	@Column(name = "field_type")
	private String fieldType;

	@Override
	public String toString() {
		return "User{" +
				"id=" + settingId +
				", name='" + name + '\'' +
				", value='" + value + '\'' +
				", field_type=" + fieldType +
				'}';
	}

}